from fastapi import FastAPI


from ..controller import (
    DeptsController,
    EmpsController,
    LogginController,
    UploadController,
)
from ..middleware.RequestInterceptionMiddlware import RequestInterceptionMiddleware
from ..middleware.LogMiddlware import LogMiddleware


def init(app: FastAPI):
    app.include_router(DeptsController.router)
    app.include_router(EmpsController.router)
    app.include_router(LogginController.router)
    app.include_router(UploadController.router)
    app.add_middleware(RequestInterceptionMiddleware)
    app.add_middleware(LogMiddleware)
